package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.CheckGroup;
import com.itheima.pojo.Setmeal;

import java.util.List;
import java.util.Map;

public interface SetmealService {
    void add(Integer[] checkgroupIds, Setmeal setmeal);

    PageResult findPage(QueryPageBean queryPageBean);

    void delete(Integer id);

    Setmeal findById(Integer id);

    List<CheckGroup> findAll();

    List<Integer> findCheckGroupBySetmealId(Integer id);

    void edit(Integer[] checkgroupIds, Setmeal setmeal);

    List<Setmeal> findAllSetMeal();

    Setmeal findSetMealById(Integer id);
    //查询[t_setmeal]和[t_order]表的[套餐名称]和[数量]
    List<Map> getValueAndNameFromSetmeal();
}
